//
//  People.swift
//  learn-ios
//
//  Created by Dong on 2022/4/5.
//

import Foundation


struct People: Identifiable {
    let id = UUID()
    let name: String
    var childs: [Child]?
}

struct Child {
    let id = UUID()
    let name: String
}

struct ModelData {
    public var peoples = [
        People(name: "XiaoMing", childs: [
            Child(name: "MingChild1"),
            Child(name: "MingChild2"),
            Child(name: "MingChild3"),
        ]),
        People(name: "YaoMing"),
        People(name: "Daived"),
        People(name: "Zenth"),
    ]
}
